package com.Service.impl;

import com.Service.userService;
import com.dao.UserMapper;
import com.model.pojo.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class userServiceImpl implements userService {

@Resource
        private UserMapper userMapper;
    @Override
    public User Login(User user) {

        return userMapper.Login(user);
    }

    @Override
    public Integer update(String name, String pwd) {
        return userMapper.updatepwd(name,pwd);
    }
}
